package com.zxjbyte.yiyi.server.annotation;

import com.zxjbyte.yiyi.framework.common.enums.ExtensionBundles;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 开启的扩展模块
 * 例如：我想要使用项目中Job和monitor功能
 *
 *  @EnableExtensionBundles({JOB, MONITOR}) 使用即可
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import({ExtensionBundlesImportSelector.class, ExtensionBundlesBeanRegistrar.class})
public @interface EnableExtensionBundles {

    ExtensionBundles[] value();
}
